package com.iSnail.ms.gather.ui.tree;

import javax.swing.tree.DefaultMutableTreeNode;

import com.iSnail.ms.gather.ui.chart.ChartInfoPanel;
import com.iSnail.ms.util.Const;
import com.iSnail.ms.util.I18N;

public class LinearContractionTreeNode extends DefaultMutableTreeNode{
	
	ChartInfoPanel chartpanel = null;

	public LinearContractionTreeNode(String name){
		super(name);
		String title = I18N.getString("linearcontraction");
		String xdescription = I18N.getString("time");
		String first = I18N.getString("displacement");
		String second = I18N.getString("temperature");
		chartpanel = new ChartInfoPanel(
										title, 
										xdescription, 
										first, 
										second,
										1,
										1,
										Const.UNIT_DISPLACEMENT,
										Const.UNIT_TEMPERATURE,
										Const.LINEARCONTRACTION_WEIYI_VALUEINDEX,
										Const.LINEARCONTRACTION_TEMP_VALUEINDEX);
	}

	public ChartInfoPanel getChartPanel(){
		return chartpanel;
	}
}